package linkList;

public class Node {
    Node right;
    Node left;
    Object date;

    public Node(){

    }

    public Node(Object date) {
        this.date = date;
    }

    public Node(Object date,Node right) {
        this.right = right;
        this.date = date;
    }
    public Node(Node left, Object date) {
        this.left = left;
        this.date = date;
    }

    public Node(Node right, Node left, Object date) {
        this.right = right;
        this.left = left;
        this.date = date;
    }

    public Node getRight() {
        return right;
    }

    public void setRight(Node right) {
        this.right = right;
    }

    public Node getLeft() {
        return left;
    }

    public void setLeft(Node left) {
        this.left = left;
    }

    public Object getDate() {
        return date;
    }

    public void setDate(Object date) {
        this.date = date;
    }
}
